package com.lbw.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lbw
 * @since 2020-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("manager_entity")
@ApiModel(value="ManagerEntity对象", description="")
public class ManagerEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员Id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "管理员姓名")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "管理员密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "用户类型（学生为1，教师为2，管理员为3）")
    @TableField(value = "type")
    private Integer type;

    @ApiModelProperty(value = "用户创建时间")
    @TableField(value = "create_date",fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;

    @ApiModelProperty(value = "删除状态")
    @TableField(value = "del_flag")
    @TableLogic
    private Integer delFlag;


}
